{
	"layer": "top",
	"position": "top",
	"height": 27,
//	"width": 0,
	"margin-bottom": 5,

    "modules-left": ["cpu", "memory", "network", "custom/cmus",],
    "modules-center": ["custom/menu", "hyprland/workspaces",],
    "modules-right": ["custom/cmus", "custom/weather", "custom/wlsunset", "tray", "hyprland/language", "pulseaudio",  "clock",  "custom/power",],
 	
	//CPU
    "cpu": {
    "interval": 1,
    "on-click": "bash scripts/wl-record.sh",
    "format": "<span font='11' rise='500'></span> <span font='11'>{usage}%</span>",
    "format-alt": "{temperatureC}°C ",
  },


	//memory
    "memory": {
    "interval": 1,
    "format": " {}%",
  "on-click": "gnome-system-monitor"
  },


	"hyprland/window": {
		"format": "{class}",
		"separate-outputs": false,
},

"hyprland/workspaces": {
		"format": "{icon}",
		"on-click": "activate",
		"format-icons": {
			"1": "1",
			"2": "2",
			"3": "3",
			"4": "4",
			"5": "5",
			"6": "6",
			"7": "7",
			"8": "8",
			"9": "9",
            "10": "10",
			},
		"tooltip": false
	},

"custom/wlsunset": {
        "interval": "once",
        "tooltip": true,
        "tooltip-format": "{tooltip}",
        "return-type": "json",
        "format": "{icon}",
        "format-icons": {
            "on": "",
            "off": ""
        },
        "exec": "fallback_latitude=50.1 fallback_longitude=8.7 latitude= longitude= /usr/share/sway/scripts/sunset.sh",
        "on-click": "/usr/share/sway/scripts/sunset.sh toggle; pkill -RTMIN+6 waybar",
        "exec-if": "/usr/share/sway/scripts/sunset.sh check",
        "signal": 6
    },

	//network
    "network": {
    "max-length": 20,
    "interval": 1,
    "format-wifi": "<span font='10' rise='2000'></span> {signalStrength}%",
  //  "format-alt": "<span font='11' rise='1000'></span> {ipaddr}/{cidr}",
    "format-linked": "<span font='11' rise='1000'></span> {ifname} (No IP)",
    "format-disconnected": "<span font='11' rise='1000'>睊</span> Disconnected",
    "format-disabled": "<span font='11' rise='1000'>睊</span> Disabled",
    "format-ethernet": "<span font='11' rise='1000'></span> {bandwidthUpBits} | <span font='13' rise='1000'></span> {bandwidthDownBits}",
    "tooltip-format": "<span font='11' rise='1000'></span> {ifname} {essid} via {gwaddr}",
    "on-click-right": "~/.local/bin/mmuvpn up cbj",
  },

	"hyprland/language": {
	    "format": "{}",
	    "format-en": "EN",
	    "format-ru": "RU",
	},


	"tray": {
		"icon-size": 23,
		"spacing": 2,
	},


	"clock": {
		"tooltip-format": "<big>{:%Y %B}</big>\n<tt><small>{calendar}</small></tt>",
		"format-alt": "{:%Y-%m-%d}"
	},

 //PowerOFF
    "custom/power": {
        "format": "",
        "on-click": "nwg-bar -x"
},


      "pulseaudio": {
    "scroll-step": 5,
    "format": "{icon} {volume}%",
    "format-bluetooth": "{volume}% {icon} {format_source}",
    "format-bluetooth-muted": " {icon} {format_source}",
    "format-muted": " {format_source}",
    "format-source": "{volume}% ",
    "format-source-muted": "",
    "format-icons": {
        "headphone": "",
        "hands-free": "",
        "headset": "",
        "phone": "",
        "portable": "",
        "car": "",
        "default": ["", "", ""]
    },
    "on-click": "pavucontrol"
},

	"custom/weather": {
    "format": "{}°",
    "tooltip": true,
    "interval": 1,
    "exec": "python ~/.config/waybar/waybar-wttr.py",
    "return-type": "json"
    },

	"custom/cmus": {
	"format": "{icon}    {}",
	"format-icons": {
		"default": [""]
		},
	"max-length": 45,
	"interval": 1,
	"exec": "cmus-remote -C \"format_print '%F'\"",
	"exec-if": "pgrep cmus",
	"on-click": "cmus-remote -u",
	"on-scroll-up": "cmus-remote --next",
	"on-scroll-down": "cmus-remote --prev",
	"escape": true,
	"tooltip": false
	},

	"custom/sep": {
	"format": "_",
	},


}